
    function t() {
        var e = [{
            id: $('.con_bj_cal .element select[name="shen"]')[0],
            className: "form_error",
            labl: "em",
            lablClass: "ico_error",
            info: [{reg: [0], tip: "请选择所在地"}]
        }, {
            id: $('.con_bj_cal .element select[name="city"]')[0],
            parentTip: ".con_bj_cal ",
            className: "form_error",
            labl: "em",
            lablClass: "ico_error",
            info: [{reg: [0], tip: "请选择所在地"}]
        }, {
            id: $('.con_bj_cal  .text_wrap :input[name="square"]')[0],
            className: "form_error",
            labl: "em",
            lablClass: "ico_error",
            info: [{reg: [0], tip: "请输入建筑面积"}, {
                reg: [/^\d+(\.[0-9]?[1-9]{1})?$/],
                tip: "建筑面积不能超过两位小数"
            }, {
                reg: [/^[0-4]{1}(\.[0-9]?[1-9]{1})?$/],
                tip: "建筑面积必须大于5",
                negate: !0
            }, {reg: [/^[1-9]{1}[0-9]{0,2}(\.[0-9]?[1-9]{1})?$|^1000$/], tip: "建筑面积必须是1000以内"}]
        }], t = {
            id: $('.con_bj_cal  .text_wrap :input[name="mobile"]')[0],
            className: "form_error",
            labl: "em",
            lablClass: "ico_error",
            info: [{reg: [0], tip: "请输入手机号码"}, {reg: [/^1{1}[34578]{1}\d{9}$/], tip: "请输入正确的手机号码"}]
        };
        return $("#mobileInput").length > 0 && e.push(t)
    }
    function xiugai() {
       if($('#square').val()!=''){
           $('#square').css('border-color','#ddd');
           $('#square').siblings('.form_error').hide();
       };
       if($("#mobile").val().match(/^1[0-9]{10}$/)){

           $('#mobile').css('border-color','#ddd')
           $('#mobile').siblings('.form_error').hide();
       }
    }
    $(document).ready(function () {
    function _() {
        for (var e = "", t = 1; 32 >= t; t++) {
            var a = Math.floor(16 * Math.random()).toString(16), e = e + a;
            8 != t && 12 != t && 16 != t && 20 != t || (e += "")
        }
        return this.guid = e += Math.ceil(1e6 * Math.random())
    }
    function h(e, t) {
        return Math.floor(e + Math.random() * (t - e + 1))
    }
    function m(e) {
        var t, a, o, i, n;
        x = setInterval(function () {
            t = h(1e4, 99999), a = h(1e4, 99999), o = h(1e3, 1e4), i = h(500, 5e3), n = t + a + o + i, $("#bprice").text(n), $("#materialPay em").text(t), $("#artificialPay em").text(a), $("#designPay em").text(o), $("#qualityPay em").text(i)
        }, e)
    }
    b = $(document).height(),
        x = (b - $("#gloWrap").height(),  0),
        w = !1, v = !1, k = !1,
        y = ["1_4_11_2041", "1_4_11_2042", "1_4_11_2043", "1_4_11_2044", "1_4_11_2045", "1_4_11_2046", "1_4_11_2047"],
        C = !1, z = !1, P = 0, S = {};
    m(200);
    $('.zcityItem').bind('click',function () {
            var city_one = $('.zcityGroup').find('input').eq(0).val();
            var city_two=$('.zcityGroup').find('input').eq(1).val();
            if(city_one == ''||city_two == ''){
                $('.zcityGroup').siblings('').hide();
            }
        })
    $('#calc_btn').bind('click',function () {

        var city_one = $('.zcityGroup').find('input').eq(0).val();
        var city_two=$('.zcityGroup').find('input').eq(1).val();
        var area = $('#square').val();
        if(city_one == ''||city_two == ''){
            $('.zcityGroup').siblings('').show();
        }else if(area==''){
            $('#square').css('border-color','red');
            $('#square').siblings('.form_error').show();
        }else if(!$("#mobile").val().match(/^1[0-9]{10}$/)){
            $('#mobile').css('border-color','red')
            $('#mobile').siblings('.form_error').show();
        }else{

        }
    })



});


